/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.mrroman.linksender.gui.actions;

import java.awt.event.ActionEvent;
import java.util.ResourceBundle;

import javax.swing.AbstractAction;

import com.mrroman.linksender.ioc.In;
import com.mrroman.linksender.ioc.Init;
import com.mrroman.linksender.ioc.Locales;
import com.mrroman.linksender.ioc.Name;
import com.mrroman.linksender.settings.SettingsEditor;

/**
 *
 * @author gorladam
 */
@Name("actions.ShowConfigurationAction")
public class ShowConfigurationAction extends AbstractAction {

	@Locales
	ResourceBundle messages;

    @In
    SettingsEditor settingsEditor;
    
	@Init
	public void init() {
		putValue(NAME, messages.getString("conf_open"));
	}

	@Override
	public void actionPerformed(ActionEvent e) {
        settingsEditor.showSettings();
	}

}
